.class abstract Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/a;
.super Ljava/lang/Object;


# instance fields
.field private initInfo:Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;

.field rootNode:Lorg/w3c/dom/Node;


# direct methods
.method public constructor <init>(Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;)V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/a;->initInfo:Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;

    invoke-virtual {p1}, Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;->getRootNode()Lorg/w3c/dom/Node;

    move-result-object v0

    iput-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/a;->rootNode:Lorg/w3c/dom/Node;

    return-void
.end method


# virtual methods
.method protected getActualValueFromAleasName(Ljava/lang/String;)Ljava/lang/String;
    .locals 3

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/a;->initInfo:Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;->getFieldAliasMap()Ljava/util/Map;

    move-result-object v0

    if-nez v0, :cond_0

    move-object v0, p1

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/a;->initInfo:Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;->getFieldAliasMap()Ljava/util/Map;

    move-result-object v0

    invoke-static {v0, p1}, Lcom/wqmobile/sdk/pojoxml/util/MapUtils;->getKeysFromValue(Ljava/util/Map;Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v1

    const/4 v2, 0x1

    if-ne v1, v2, :cond_1

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    const/16 v1, 0x2e

    invoke-virtual {v0, v1}, Ljava/lang/String;->lastIndexOf(I)I

    move-result v1

    add-int/lit8 v1, v1, 0x1

    invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :cond_1
    move-object v0, p1

    goto :goto_0
.end method

.method public getElementName(Lorg/w3c/dom/Node;)Ljava/lang/String;
    .locals 1

    invoke-interface {p1}, Lorg/w3c/dom/Node;->getNodeName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/a;->getActualValueFromAleasName(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/wqmobile/sdk/pojoxml/util/StringUtil;->initCap(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getInitInfo()Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/a;->initInfo:Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;

    return-object v0
.end method

.method public getRootNode()Lorg/w3c/dom/Node;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/a;->rootNode:Lorg/w3c/dom/Node;

    return-object v0
.end method

.method public setInitInfo(Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/a;->initInfo:Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;

    return-void
.end method

.method public setRootNode(Lorg/w3c/dom/Node;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/a;->rootNode:Lorg/w3c/dom/Node;

    return-void
.end method
